package com.morehair.mapper;

import com.morehair.bean.pojo.SpecificationOfGoods;
import com.morehair.bean.pojo.SpecificationOfGoodsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpecificationOfGoodsMapper {
    long countByExample(SpecificationOfGoodsExample example);

    int deleteByExample(SpecificationOfGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SpecificationOfGoods record);

    int insertSelective(SpecificationOfGoods record);

    List<SpecificationOfGoods> selectByExample(SpecificationOfGoodsExample example);

    SpecificationOfGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SpecificationOfGoods record, @Param("example") SpecificationOfGoodsExample example);

    int updateByExample(@Param("record") SpecificationOfGoods record, @Param("example") SpecificationOfGoodsExample example);

    int updateByPrimaryKeySelective(SpecificationOfGoods record);

    int updateByPrimaryKey(SpecificationOfGoods record);

    List<SpecificationOfGoods> selectByGoodsId(Integer id);


    int selectByGoodsIdAndNoDeleted(@Param("goodsId") Integer goodsId);

    void updateBeforeDeleteById(@Param("goodsId") Integer goodsId);
}